<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>XiaRiKui | 后台登陆</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link href="/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/Public/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
    <link href="/Public/plugins/iCheck/square/blue.css" rel="stylesheet" type="text/css" />
    <style>
    #imgVerify {
        width: 120px;
        margin: 0 auto;
        text-align: center;
        display: block;
    }
    </style>
</head>

<body class="login-page">
    <div class="login-box ma_t_cm">
        <?php if(isset($message)) {?>

        <div class="login-box-body">
            <h4 class="login-box-msg ver_cm"><span class="glyphicon glyphicon-ok ver_cm"></span> <?php echo($message); ?></h4>
            <a href="javascript:;">页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b></a>
            <br />
            <br />
            <a href="/" target="_parent">网站前台</a>
            <a href="/index.php?m=Admin&c=Index&a=index" target="_parent">管理员后台</a>
        </div>

        <?php }else{?>

        <div class="login-box-body">
            <h4 class="login-box-msg ver_cm"><span class="glyphicon glyphicon-remove ver_cm"></span> <?php echo($error); ?></h4>
            <a href="javascript:;">页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b></a>
            <br />
            <br />
            <a href="/" target="_parent">网站前台</a>
            <a href="/index.php?m=Admin&c=Index&a=index" target="_parent">管理员后台</a>
        </div>
        <?php }?>
        <div class="margin text-center">
            <div class="copyright">
                2014-<?php echo date('Y');?> &copy; <a href="http://www.xiarikui.com/xiarikui.html">XiaRiKui v2.0.0</a>
                <br/>
                <a href="http://www.xiarikui.com">珠海夏浪信息科技有限公司</a>出品
            </div>
        </div>
    </div>

    <script type="text/javascript">
    (function() {
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function() {
            var time = --wait.innerHTML;
            if (time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
    </script>
</body>

</html>